#ifndef KUOZHANGBEAN_H
#define KUOZHANGBEAN_H
#include "QString"
#include "citynode.h"
#include "runshopbean.h"
#include "QJsonObject"

class KuoZhangBean
{
public:
    int num;//序号，和 角色管理中对应

    QString groupCity; //进入帮派城市
    QString groupCityEn; //进入帮派城市英文名称
    QString groupXiaoWeiLocation;
    int groupIndex; //帮派城市索引
    int taskTotal = 50; //任务总次数
    QString shortCityName; //距离帮派最近的大城市

    int npcLocationX = 148; //佟芙蓉坐标
    int npcLocationY = 56;

     QList<CityNode *> backLine;


private:
    static void createObject(QJsonObject &obj, KuoZhangBean* kuoZhangBean);

public:
    KuoZhangBean();
    KuoZhangBean(int num, QString groupCity, QString groupXiaoWeiLocation, int groupIndex, int taskTotal, QString shortCityName);

    static QList<KuoZhangBean> jsonToArray(QByteArray jsonArray);

    static QByteArray ArraytoJson(QList<KuoZhangBean*> *kuoZhangBeans);

    void setLine();
};

#endif // KUOZHANGBEAN_H
